package main

import (
	"beergo/conf/http"
	"beergo/lib/os/service"
	"github.com/beego/beego/v2/server/web"
	//加载业务逻辑
	_ "beergo/app"
)

func main() {
	service.RunOrServiceRun(RunOrServiceRun)
}

func RunOrServiceRun() {
	web.BConfig.CopyRequestBody = true
	web.BConfig.EnableErrorsShow = true
	web.ErrorController(&http.ErrorController{})
	//web.SetStaticPath("/static", web.AppConfig.DefaultString("Root", "")+"/static")
	web.SetStaticPath("/static","static")
	web.Run()
}
